/**
 * 全局自动注入组件
 */
import { App } from 'vue';
import { Component } from 'vue';
// 这里导入需要全局注入的组件
const components: Array<Component> = [];
export default function (app: App): void {
  if (null != components && components.length > 0) {
    for (const component of components) {
      if (component.name !== undefined) {
        app.component(component.name, component);
      }
    }
  }
}
